<section class="box clearfix productTeaserBox">
    <div class="breadcrumb">
        <a href="#"> Trang chủ </a> > <a href="#"> Danh mục sản phẩm
        </a>
    </div>
</section>
<section class="box clearfix productTeaserBox">
    <div id="gallery1" style="display: none;">
        <a href="#" class="show"><img rel=" " title="" alt="slider1"
                                      src="images/nuoc_1.jpg"></a> <a href="#" class=""><img
                rel=" " title="" alt="slider1" src="images/23.png"></a> <a
            href="#" class=""><img rel=" " title="" alt="slider1"
                                   src="images/nuoc_1.jpg"></a> <a href="#" class=""><img
                rel=" " title="" alt="slider1" src="images/23.png"></a>
    </div>
</section>
<!------------end.right2---------->
<section class="box productTeaserBox">
    <div class="content_tomtat">
        <?php if (isset($tbl_products[0]['seotext'])) {
            echo $tbl_products[0]['seotext'];
        } else {
            echo "Chưa có sản phẩm nào";
        } ?>
    </div>
</section>
<section class="box clearfix productTeaserBox">
    <!-- Sitemap -->

    <!-- Filter box -->
    <div class="product-filter-wrapper">
        <div class="title">
            <span>Tìm theo</span>
        </div>

        <!-- Price Range -->
        <div class="filter">
            <div class="filter-name">
                <a href="javascript:;" title="Mức giá">Mức giá</a>
            </div>

            <div class="filter-list-wrapper ">
                <ul class="filter-list nolist ">
                    <li class="checked"><a href="<?php echo base_url(''); ?>">Tất cả</a></li>
                    <?php foreach ($khoanggia as $khoanggias): ?>
                        <li>
                            <!--<a href="<?php echo base_url() . mb_strtolower(url_title(removesign($khoanggias['aprice_name']))) . '-g-' . $khoanggias['aprice_id']; ?>"><?php echo $khoanggias['aprice_name']; ?></a>-->
                            <?php
                            $p = $khoanggias['aprice_id'];
                            $url_Filter_r = preg_replace('~p=[0-9]+~', "p=$p", $url_Filter);
                            ?>
                            <a href="/<?php echo $url_Filter_r ?>"><?php echo $khoanggias['aprice_name']; ?></a>
                        </li>
                    <?php endforeach; ?>

                </ul>
            </div>

            <script>

            </script>

        </div>
        <!-- Manufacturer -->
        <div class="filter">
            <div class="filter-name">
                <a href="javascript:;" title="Hãng sản xuất">Hãng sản xuất</a>
            </div>
            <div class="filter-list-wrapper ">
                <div class="filter-list nolist maunufacturer">
                    <ul>
                        <li class="checked"><a href="<?php echo base_url() . 'dieu-hoa-khong-khi'; ?>">Tất
                                cả</a></li>
                        <?php foreach ($hangsanxuat AS $hangsanxuats): ?>
                            <li class="">
                                <!--
                                <a  href="<?php echo base_url() . mb_strtolower(url_title(removesign($hangsanxuats['origin_name']))) . '-h-' . $hangsanxuats['origin_id']; ?>"><?php echo $hangsanxuats['origin_name'] ?></a>
                                -->
                                <?php
                                $h = $hangsanxuats['origin_id'];
                                $url_Filter_h = preg_replace('~h=[0-9]+~', "h=$h", $url_Filter);
                                ?>
                                <a href="/<?php echo $url_Filter_h ?>"><?php echo $hangsanxuats['origin_name']; ?></a>
                            </li>
                        <?php endforeach; ?>
                    </ul>
                    <ul class="child">
                    </ul>
                </div>
            </div>
        </div>
        <!-- Property -->
        <div class="filter">
            <div class="filter-name">
                <a href="javascript:;" title="loại điều hòa">Loại điều hòa</a>
            </div>
            <div class="filter-list-wrapper ">
                <ul class="filter-list nolist ">
                    <li class="checked">
                        <a href="<?php echo base_url() . 'dieu-hoa-khong-khi.html'; ?>">
                            Tất cả</a>
                    </li>
                    <?php foreach ($thuonghieu AS $thuonghieus): ?>
                        <li>
                            <?php
                            $l = $thuonghieus['brand_id'];
                            $url_Filter_l = preg_replace('~l=[0-9]+~', "l=$l", $url_Filter);
                            ?>
                            <a href="/<?php echo $url_Filter_l ?>"><?php echo $thuonghieus['brand_name']; ?></a>
                        </li>
                    <?php endforeach; ?>

                </ul>
            </div>
        </div>
        <div class="filter">
            <div class="filter-name ">
                <a href="javascript:;" title="Kích thước màn hình">Công
                    suất</a>
            </div>
            <div class="filter-list-wrapper ">
                <ul class="filter-list nolist ">
                    <li class="checked"><a href="<?php echo base_url() . 'dieu-hoa-khong-khi'; ?>">Tất
                            cả</a></li>
                    <?php foreach ($congxuat AS $conxuats): ?>
                        <li>
                            <?php
                            $c = $conxuats['capacity_id'];
                            $url_Filter_c = preg_replace('~c=[0-9]+~', "c=$c", $url_Filter);
                            ?>
                            <a href="/<?php echo $url_Filter_c ?>"><?php echo $conxuats['capacity_name']; ?></a>
                        </li>
                    <?php endforeach; ?>

                </ul>
            </div>
        </div>
        <div class="filter">
            <div class="filter-name ">
                <a href="javascript:;" title="Kích thước màn hình">Tính năng</a>
            </div>
            <div class="filter-list-wrapper ">
                <ul class="filter-list nolist ">
                    <li class="checked"><a href="<?php echo base_url() . 'dieu-hoa-khong-khi'; ?>">Tất
                            cả</a></li>
                    <?php foreach ($tinhnang AS $tinhnangs): ?>
                        <li>
                            <?php
                            $t = $tinhnangs['tech_id'];
                            $url_Filter_t = preg_replace('~t=[0-9]+~', "t=$t", $url_Filter);
                            ?>
                            <a href="/<?php echo $url_Filter_t ?>"><?php echo $tinhnangs['tech_name']; ?></a>
                        </li>
                    <?php endforeach; ?>

                </ul>
            </div>
        </div>


        <!-- Order -->
        <div class="filter selected orderby">
            <div class="filter-name ">
                <a href="javascript:;" title="Giá cao đến thấp">Giá thấp đến cao</a>
            </div>
            <div class="filter-list-wrapper">
                <ul class="filter-list nolist ">
                    <?php
                    $t0 = 0;
                    $url_Filter_pr0 = preg_replace('~pr=[0-9]+~', "pr=$t0", $url_Filter);
                    ?>
                    <li class="checked"><a href="/<?php echo $url_Filter_pr0; ?>">Giá thấp đến cao</a></li>
                    <?php
                    $t = 1;
                    $url_Filter_pr = preg_replace('~pr=[0-9]+~', "pr=$t", $url_Filter);
                    ?>
                    <li>
                        <a href="/<?php echo $url_Filter_pr ?>">Giá cao đến thấp</a>
                    </li>
                </ul>
            </div>
        </div>
        <script type="text/javascript">
            $('#ulcatmenu > li > a').each(function () {
                var tmp = $(this).attr('href').replace('/', '');
                if (tmp.indexOf(caturl) >= 0) {
                    $(this).addClass('active');
                    return;
                }
            });
        </script>
    </div>

    <!-- CategoryKeyOffer -->
    <script type="text/javascript">
        $('.productTeaserBox .product-filter-wrapper').css('margin-bottom', '0');
    </script>

    <!-- Compare area -->
    <div id="catprodcmpr"></div>

    <!-- Product list -->

</section>

<section class="box clearfix productTeaserBox">
    <header class="header ">
        <div class="ui-borderBottom clearfix">
            <h2 class="lfloat h3">
                <?php if (isset($tbl_products[0]['cate_name'])) {
                    echo $tbl_products[0]['cate_name'];
                } else {
                    echo "Chưa có sản phẩm nào";
                } ?>
            </h2>

            <div class="clearfix"></div>
        </div>
    </header>
    <div class="lis_prd">
        <?php foreach ($tbl_products as $tbl_product) : ?>
            <div class="lis2">
                <a href="<?php echo base_url() . mb_strtolower(url_title(removesign($tbl_product['title']))) . '.html'; ?>"><img
                        style="width: 150; height: 170px" src="<?php echo $tbl_product['img1']; ?>"></a>

                <div class="ldtail2">
                    <h3>
                        <a href="<?php echo base_url() . mb_strtolower(url_title(removesign($tbl_product['title']))) . '.html'; ?>"><?php echo $tbl_product['title']; ?></a>
                    </h3>

                    <p class="price"><?php echo number_format($tbl_product['price']); ?> VNĐ</p>
                    <a class="more"
                       href="<?php echo base_url() . mb_strtolower(url_title(removesign($tbl_product['title']))) . '.html'; ?>">Xem
                        chi tiết</a>
                </div>
            </div>
        <?php endforeach; ?>


    </div>
    <ul class="pagination">
        <?php echo $pagination; ?>
    </ul>
</section>
<!------------end.right3---------->